import request from "../utils/request";
// 学校分页
export const schList = data => {
    return request({
        method: 'POST',
        url: '/school/getSchoolPage',
        data
    })
}
// 学校不分页
export const schNoPage = () => {
    return request({
        method: 'GET',
        url: '/school/getSchoolList'
    })
}
//新增学校
export const addSch = data => {
    return request({
        method: 'POST',
        url: '/school/add',
        data
    })
}
//删除学校
export const delSch = id => {
    return request({
        method: 'GET',
        url: '/school/deleteById?id=' + id
    })
}
//编辑学校
export const editSch = data => {
    return request({
        method: 'POST',
        url: '/school/edit',
        data
    })
}
